package com.pp.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 首页图片
 * </p>
 *
 * @author 冯政尚
 * @since 2019-04-03
 */
@ApiModel(value="GovIndexImage对象", description="首页图片")
public class GovIndexImage extends Model<GovIndexImage> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "宽")
    @TableField("width")
    private Integer width;

    @ApiModelProperty(value = "高")
    @TableField("height")
    private Integer height;

    @ApiModelProperty(value = "路径")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "关联ID")
    @TableField("relaction_id")
    private Long relactionId;

    @ApiModelProperty(value = "正反面   1正 2 反")
    @TableField("up_down")
    private Integer upDown;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }
    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }
    public Long getRelactionId() {
        return relactionId;
    }

    public void setRelactionId(Long relactionId) {
        this.relactionId = relactionId;
    }
    public Integer getUpDown() {
        return upDown;
    }

    public void setUpDown(Integer upDown) {
        this.upDown = upDown;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GovIndexImage{" +
        "id=" + id +
        ", width=" + width +
        ", height=" + height +
        ", relactionId=" + relactionId +
        ", upDown=" + upDown +
        ", url=" + url +
        "}";
    }
}
